<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Objective-C API Reference for iOS/macOS: JCMediaDeviceVideoCanvas类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Objective-C API Reference for iOS/macOS
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">构造函数</a> &#124;
<a href="#properties">属性</a> &#124;
<a href="interface_j_c_media_device_video_canvas-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">JCMediaDeviceVideoCanvas类 参考<div class="ingroups"><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html">设备模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#import &lt;<a class="el" href="_j_c_media_device_video_canvas_8h_source.html">JCMediaDeviceVideoCanvas.h</a>&gt;</code></p>
<div class="dynheader">
类 JCMediaDeviceVideoCanvas 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_j_c_media_device_video_canvas.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
构造函数</h2></td></tr>
<tr class="memitem:ad3b0bcd461e47781006a6128310b1319"><td class="memItemLeft" align="right" valign="top">(bool)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_media_device_video_canvas.html#ad3b0bcd461e47781006a6128310b1319">replace:</a></td></tr>
<tr class="separator:ad3b0bcd461e47781006a6128310b1319"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39507efa59a73638c5965b09fa5c65d7"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_media_device_video_canvas.html#a39507efa59a73638c5965b09fa5c65d7">pause</a></td></tr>
<tr class="separator:a39507efa59a73638c5965b09fa5c65d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a79828ae1f7fcd7a3c0a0bf4dec2c26bc"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_media_device_video_canvas.html#a79828ae1f7fcd7a3c0a0bf4dec2c26bc">resume</a></td></tr>
<tr class="separator:a79828ae1f7fcd7a3c0a0bf4dec2c26bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46ef393ac04ab4405031ecb3d643c5dd"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_media_device_video_canvas.html#a46ef393ac04ab4405031ecb3d643c5dd">rotate:</a></td></tr>
<tr class="separator:a46ef393ac04ab4405031ecb3d643c5dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a243d426941c3b920068e7b6149678a32"><td class="memItemLeft" align="right" valign="top">(bool)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_media_device_video_canvas.html#a243d426941c3b920068e7b6149678a32">snapshot:heigh:filePath:</a></td></tr>
<tr class="separator:a243d426941c3b920068e7b6149678a32"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
属性</h2></td></tr>
<tr class="memitem:a6da082189394003d2f5402e8b5f14779"><td class="memItemLeft" align="right" valign="top">NSString *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_media_device_video_canvas.html#a6da082189394003d2f5402e8b5f14779">videoSource</a></td></tr>
<tr class="separator:a6da082189394003d2f5402e8b5f14779"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48d5f5ec9c6d55996351838334701ab4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="_j_c_media_device_video_canvas_8h.html#a8681d2280b42cc393b64f1737ddbb032">JCView</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_media_device_video_canvas.html#a48d5f5ec9c6d55996351838334701ab4">videoView</a></td></tr>
<tr class="separator:a48d5f5ec9c6d55996351838334701ab4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab20be33ca0798f15c1e28cd0bbf45277"><td class="memItemLeft" align="right" valign="top"><a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga22a1fb216a9252ce2ef1afb257e530f2">JCMediaDeviceRender</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_media_device_video_canvas.html#ab20be33ca0798f15c1e28cd0bbf45277">renderType</a></td></tr>
<tr class="separator:ab20be33ca0798f15c1e28cd0bbf45277"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2dc32fcae1308ce635263184f64803a"><td class="memItemLeft" align="right" valign="top">id&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_media_device_video_canvas.html#aa2dc32fcae1308ce635263184f64803a">customData</a></td></tr>
<tr class="separator:aa2dc32fcae1308ce635263184f64803a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>视频对象 </p>
</div><h2 class="groupheader">函数文档</h2>
<a id="a39507efa59a73638c5965b09fa5c65d7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a39507efa59a73638c5965b09fa5c65d7">&#9670;&nbsp;</a></span>pause</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) pause </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>暂停视频渲染 </p>

</div>
</div>
<a id="ad3b0bcd461e47781006a6128310b1319"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad3b0bcd461e47781006a6128310b1319">&#9670;&nbsp;</a></span>replace:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (bool) replace: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>videoSource</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>更新视频渲染标识 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">videoSource</td><td>视频源 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回 true，失败返回 false </dd></dl>

</div>
</div>
<a id="a79828ae1f7fcd7a3c0a0bf4dec2c26bc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a79828ae1f7fcd7a3c0a0bf4dec2c26bc">&#9670;&nbsp;</a></span>resume</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) resume </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>恢复视频渲染 </p>

</div>
</div>
<a id="a46ef393ac04ab4405031ecb3d643c5dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46ef393ac04ab4405031ecb3d643c5dd">&#9670;&nbsp;</a></span>rotate:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) rotate: </td>
          <td></td>
          <td class="paramtype">(int)&#160;</td>
          <td class="paramname"><em>angle</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>旋转角度，必须是90的倍数，该角度表示与屏幕正方向旋转后的夹角 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">angle</td><td>角度值 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a243d426941c3b920068e7b6149678a32"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a243d426941c3b920068e7b6149678a32">&#9670;&nbsp;</a></span>snapshot:heigh:filePath:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (bool) snapshot: </td>
          <td></td>
          <td class="paramtype">(int)&#160;</td>
          <td class="paramname"><em>width</em></td>
        </tr>
        <tr>
          <td class="paramkey">heigh:</td>
          <td></td>
          <td class="paramtype">(int)&#160;</td>
          <td class="paramname"><em>height</em></td>
        </tr>
        <tr>
          <td class="paramkey">filePath:</td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>filePath</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>视频通话截图 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">width</td><td>截屏宽度像素，-1为视频源像素 </td></tr>
    <tr><td class="paramname">height</td><td>截屏高度像素，-1为视频源像素 </td></tr>
    <tr><td class="paramname">filePath</td><td><b>文件路径，需精确到文件名及格式，例如：/Documents/JuphoonCloud/picture.png。请确保目录存在且可写。</b> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>是否成功<ul>
<li>true: 成功</li>
<li>false: 失败 </li>
</ul>
</dd></dl>

</div>
</div>
<h2 class="groupheader">属性说明</h2>
<a id="aa2dc32fcae1308ce635263184f64803a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa2dc32fcae1308ce635263184f64803a">&#9670;&nbsp;</a></span>customData</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (id) customData</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>自定义数据 </p>

</div>
</div>
<a id="ab20be33ca0798f15c1e28cd0bbf45277"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab20be33ca0798f15c1e28cd0bbf45277">&#9670;&nbsp;</a></span>renderType</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="group___xE8_xAE_xBE_xE5_xA4_x87_xE6_xA8_xA1_xE5_x9D_x97.html#ga22a1fb216a9252ce2ef1afb257e530f2">JCMediaDeviceRender</a>) renderType</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>渲染模式 </p>

</div>
</div>
<a id="a6da082189394003d2f5402e8b5f14779"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6da082189394003d2f5402e8b5f14779">&#9670;&nbsp;</a></span>videoSource</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSString*) videoSource</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>渲染标识 </p>

</div>
</div>
<a id="a48d5f5ec9c6d55996351838334701ab4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48d5f5ec9c6d55996351838334701ab4">&#9670;&nbsp;</a></span>videoView</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="_j_c_media_device_video_canvas_8h.html#a8681d2280b42cc393b64f1737ddbb032">JCView</a>*) videoView</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>获取视频渲染视图 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>JCSDKOC/JCSDKOC/JCMediaDevice/<a class="el" href="_j_c_media_device_video_canvas_8h_source.html">JCMediaDeviceVideoCanvas.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
